<template>
    <a-carousel autoplay>
        <a-carousel-item v-for="(image, index) in images" :key="index">
            <img :src="image" alt="carousel-image" />
        </a-carousel-item>
    </a-carousel>
</template>

<script setup>
    const images = ref([
        'https://picsum.photos/id/1001/1920/1080',
        'https://picsum.photos/id/1002/1920/1080',
        'https://picsum.photos/id/1003/1920/1080',
        'https://picsum.photos/id/1004/1920/1080',
    ]);
</script>

<style scoped>
    /* 可以添加一些样式来美化轮播 */
</style>